﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MasterPagePicker.aspx.cs"
    Inherits="RioLinx.SharePoint.Responsive.MasterPagePicker" MasterPageFile="/_layouts/15/seattle.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table class="ms-propertysheet" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2" class="ms-sectionline" height="1">
                <img src="/_layouts/images/blank.gif" alt="" width="1" height="1" />
            </td>
        </tr>
        <tr>
            <td width="50%">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" height="179px">
                    <tr>
                        <td class="ms-sectionheader">
                            <asp:Literal ID="Literal1" runat="server" Text="Page Template" />
                        </td>
                    </tr>
                    <tr>
                        <td id="onetidListDescriptionText" class="ms-descriptiontext">
                            <asp:Literal ID="Literal2" runat="server" Text="Please choose a master page template to use." />
                        </td>
                        <td width="10">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="ms-sectionheader" height="28" valign="top" id="TD3">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="ms-sectionheader" height="28" valign="top" id="TD1">
                            <asp:Literal ID="Literal4" runat="server" Text="Current Master Page" />
                        </td>
                    </tr>
                    <tr>
                        <td id="TD2" class="ms-descriptiontext">
                            <asp:Literal ID="LitMST" runat="server" Text="" />
                        </td>
                        <td width="10">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
            <td class="ms-authoringcontrols" id="800" colspan="2">
                <label for="onetidListTitle">
                    <asp:Literal ID="Literal19" runat="server" Text="Select a Master Page" /></label><font
                        size="3">&nbsp;</font><br />
                <asp:RadioButtonList ID="rdlistGallery" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
                    CssClass="ms-authoringcontrols" Width="245px" OnSelectedIndexChanged="rdlistGallery_SelectedIndexChanged">
                    <asp:ListItem Value="local" Selected="Selected">Local gallery</asp:ListItem>
                    <asp:ListItem Value="top">Top gallery</asp:ListItem>
                </asp:RadioButtonList>
                <table border="0" cellspacing="1">
                    <tr>
                        <td style="height: 218px">
                            &nbsp;
                        </td>
                        <td class="ms-authoringcontrols" style="width: 84px; height: 218px;">
                            <asp:ListBox ID="MasterPageList" runat="server" Rows="15" Width="300px" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="ms-sectionline" height="2" colspan="5">
                <img src="/_layouts/images/blank.gif" width="1" height="1" alt="">
            </td>
        </tr>
    </table>
    <table class="ms-propertysheet" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="50%">
                <img src="/_layouts/images/blank.gif" alt="" width="1" height="1" />
            </td>
            <td>
                <table class="ms-propertysheet" width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td valign="top" nowrap="nowrap" class="ms-descriptiontext" width="8px" style="padding-top: 5px;">
                            <img src="/_layouts/images/setrect.gif" width="5px" height="5px" alt='' />&nbsp;
                        </td>
                        <td valign="top" class="ms-descriptiontext" style="padding-top: 7px; padding-left: 3px;">
                            <asp:LinkButton ID="LinkSubmitter" Text="Apply to this site" OnClick="DoSubmit" runat="server"></asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" nowrap="nowrap" class="ms-descriptiontext" width="8px" style="padding-top: 5px;">
                            <img src="/_layouts/images/setrect.gif" width="5px" height="5px" alt='' />&nbsp;
                        </td>
                        <td valign="top" class="ms-descriptiontext" style="padding-top: 7px; padding-left: 3px;">
                            <asp:LinkButton ID="LinkSubmitterSubWebs" Text="Apply to this site and its sub sites"
                                OnClientClick="return SurePrompt();" OnClick="DoSubmitAll" runat="server"></asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="ms-sectionline" colspan="2" height="2px">
                            <img src="/_layouts/images/blank.gif" alt="" width="1" height="1" />
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" nowrap="nowrap" class="ms-descriptiontext" width="8px" style="padding-top: 5px;">
                            <img src="/_layouts/images/setrect.gif" width="5px" height="5px" alt='' />&nbsp;
                        </td>
                        <td valign="top" class="ms-descriptiontext" style="padding-top: 7px; padding-left: 3px;">
                            <asp:LinkButton ID="LinkSubmitterResetSubWebs" Text="Reset this site and all its sub sites with default.master"
                                OnClientClick="return SureResetPrompt();" OnClick="DoResetAll" runat="server"></asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="ms-sectionline" colspan="2" height="2px">
                <img src="/_layouts/images/blank.gif" alt="" width="1" height="1" />
            </td>
        </tr>
    </table>
</asp:Content>
